import { openBuildService, buildService } from '../../helper/service'

const settings = {
    getPieStat: { //企-质量-饼图（按隐患排查）
        url: '/plat/api/v3/screen/safe_hazard_manage/pie_stat',
        method: 'get'
    },
    getBarStatByMonth: { //企-质量-柱状图（按时间）
        url: '/plat/api/v3/screen/safe_hazard_manage/bar_stat_by_month',
        method: 'get'
    },
    getProjectList: { //企-质量-项目列表-分公司或项目级
        url: '/plat/api/v3/screen/safe_hazard_manage/project_list',
        method: 'get'
    },
    //企-工地-日均出勤率统计表
    dayAttendanceRateStat: {
        url: '/api/v3/screen/day_attendance_rate_stat',
        method: 'get'
    },
    dustAccessProjectNum: { //企-场地环境-扬尘噪声-接入项目数
        url: '/intecons/api/v3/screen/dust/dust_access_project_num',
        method: 'get'
    },
    dustAccessProjectCoverage: { //企-场地环境-扬尘噪声-覆盖率
        url: '/intecons/api/v3/screen/dust/dust_access_project_coverage',
        method: 'get'
    },
    dustTodayList: { //企-场地环境-扬尘噪声-今日列表
        url: '/intecons/api/v3/screen/dust/dust_today_list',
        method: 'get'
    },
    videoAccessProjectNum: { //企-场地环境-视频监控-接入项目数
        url: '/intecons/api/v3/screen/video/video_access_project_num',
        method: 'get'
    },
    videoAccessProjectCoverage: { //企-场地环境-视频监控-覆盖率
        url: '/intecons/api/v3/screen/video/video_access_project_coverage',
        method: 'get'
    },
    videoTotalNum: { //企-场地环境-视频监控-摄像头总数
        url: '/intecons/api/v3/screen/video/video_total_num',
        method: 'get'
    },
    videoOnlineRate: { //企-场地环境-视频监控-在线率
        url: '/intecons/api/v3/screen/video/video_online_rate',
        method: 'get'
    },
    videoSelectList: { //企-场地环境-视频监控-下拉框列表
        url: '/intecons/api/v3/screen/video/video_select_list',
        method: 'get'
    },
    meterCurrentMonthNum: { //企-场地环境-用电能耗-本月用电
        url: '/intecons/api/v3/screen/meter/meter_current_month_num',
        method: 'get'
    },
    meterCurrentYearNum: { //企-场地环境-用电能耗-本年用电
        url: '/intecons/api/v3/screen/meter/meter_current_year_num',
        method: 'get'
    },
    meterAccessProjectNum: { //企-场地环境-用电能耗-接入项目数
        url: '/intecons/api/v3/screen/meter/meter_access_project_num',
        method: 'get'
    },
    meterAccessProjectCoverage: { //企-场地环境-用电能耗-覆盖率
        url: '/intecons/api/v3/screen/meter/meter_access_project_coverage',
        method: 'get'
    },
    meterByDate: { //企-场地环境-用电能耗-按日期
        url: '/intecons/api/v3/screen/meter/meter_by_date',
        method: 'get'
    },
    meterByCompany: { //企-场地环境-用电能耗-按单位
        url: '/intecons/api/v3/screen/meter/meter_by_company',
        method: 'get'
    },
    meterListByCompany: { //企-场地环境-用电能耗-按单位-项目列表
        url: '/intecons/api/v3/screen/meter/meter_list_by_company',
        method: 'get'
    },
    waterAccessProjectNum: { //企-场地环境-用水能耗-接入项目数
        url: '/intecons/api/v3/screen/water/water_access_project_num',
        method: 'get'
    },
    waterAccessProjectCoverage: { //企-场地环境-用水能耗-覆盖率
        url: '/intecons/api/v3/screen/water/water_access_project_coverage',
        method: 'get'
    },
    waterByDate: { //企-场地环境-用水能耗-按日期
        url: '/intecons/api/v3/screen/water/water_by_date',
        method: 'get'
    },
    waterByCompany: { //企-场地环境-用水能耗-按单位
        url: '/intecons/api/v3/screen/water/water_by_company',
        method: 'get'
    },
    waterListByCompany: { //企-场地环境-用水能耗-查看单位项目列表
        url: '/intecons/api/v3/screen/water/water_list_by_company',
        method: 'get'
    },
    waterCurrentMonthNum: { //企-场地环境-用水能耗-本月总用水
        url: '/intecons/api/v3/screen/water/water_current_month_num',
        method: 'get'
    },
    waterCurrentYearNum: { //企-场地环境-用水能耗-本年总用水
        url: '/intecons/api/v3/screen/water/water_current_year_num',
        method: 'get'
    },
    totalNum: { //企-材料-钢筋目标/采购/实际总量
        url: '/bulk/api/v3/screen/total_num',
        method: 'get'
    },
    realityRate: { //企-材料-钢筋实际验收占比
        url: '/bulk/api/v3/screen/reality_rate',
        method: 'get'
    },

    materielStat: { //企-材料-钢筋统计图
        url: '/bulk/api/v3/screen/materiel_stat',
        method: 'get'
    },
    materielInTotal: { //企-材料-收料进场量
        url: '/api/v3/screen/materiel_in_total',
        method: 'get'
    },
    materielOffsetRate: { //企-材料-收料偏差率
        url: '/api/v3/screen/materiel_offset_rate',
        method: 'get'
    },
    materielStatByTime: { //企-材料-收料统计表（按时间）
        url: '/api/v3/screen/materiel_stat_by_time',
        method: 'get'
    },
    materielStatByCompany: { //企-材料-收料统计表（按单位，只支持建投
        url: '/api/v3/screen/materiel_stat_by_company',
        method: 'get'
    },
    materielStatBySupplier: { //企-材料-收料统计表（按供应商）
        url: '/api/v3/screen/materiel_stat_by_supplier',
        method: 'get'
    },
    materielProjectList: { //材料-材料物资项目列表
        url: '/api/v3/screen/materiel_project_list',
        method: 'get'
    },
    todayTowerAlarmTypeCountRate: { //企-机械-统计图表（按时间）
        url: '/intecons/api/v1/screen/today_tower_alarm_type_count_rate',
        method: 'get'
    },
    mechanicalProjectList: { //企-机械-统计图表（按项目）
        url: '/intecons/api/v3/screen/mechanical_equip_manage/mechanical_project_list',
        method: 'get'
    },
    blackBoxProjectCoverRate: { //(弃用)企-机械-黑匣子项目覆盖率
        url: '/api/v1/screen/black_box_project_cover_rate',
        method: 'get'
    },
    towerStat: { //企-机械-塔机数量/黑匣子总数/黑匣子项目覆盖率/塔机在线率
        url: '/intecons/api/v3/screen/mechanical_equip_manage/tower_stat',
        method: 'get'
    },
    projectTotalNum: { //企-进度部位管理-项目总数
        url: '/plat/api/v3/screen/project/project_total',
        method: 'get'
    },
    projectBuildingNum: { //企-进度部位管理-在建项目数
        url: '/plat/api/v3/screen/project/project_building_num',
        method: 'get'
    },
    projectStageList: { //企-进度部位管理
        url: '/plat/api/v3/screen/project/project_stage_list',
        method: 'get'
    },
    getStat: { //企-安全-检查数量/隐患整改数量/逾期整改率
        url: '/plat/api/v3/screen/safe_hazard_manage/stat',
        method: 'get'
    },
    pieStat: { //企-质量-饼图（按隐患排查
        url: '/plat/api/v3/screen/safe_hazard_manage/pie_stat',
        method: 'get'
    },
    barStatByMonth: { //企-质量-柱状图（按时间）
        url: '/plat/api/v3/screen/safe_hazard_manage/bar_stat_by_month',
        method: 'get'
    },
    barStatByCompany: { //企-质量-柱状图（按单位）-集团有子单位（如浙建集团
        url: '/plat/api/v3/screen/safe_hazard_manage/bar_stat_by_company',
        method: 'get'
    },
    dayAttendanceRate: { //企-工地-日均出勤率
        url: '/intecons/api/v3/screen/site/day_attendance_rate',
        method: 'get'
    },
    dayAttendanceRateStatByTime: { //企-工地-日均出勤率统计表（按时间）
        url: '/intecons/api/v3/screen/site/day_attendance_rate_stat_by_time',
        method: 'get'
    },
    dayAttendanceRateStatByCompany: { //企-工地-日均出勤率统计表（按单位，只支持建投）
        url: '/intecons/api/v3/screen/site/day_attendance_rate_stat_by_company',
        method: 'get'
    },
    dayAttendanceRateProjectList: { //企-工地-日均出勤率项目列表
        url: '/intecons/api/v3/screen/site/day_attendance_rate_project_list',
        method: 'get'
    },
    //项目-摄像头总数
    videoProjectTotalNum: {
        url: '/intecons/api/v1/screen/camera_total_num',
        method: 'get'
    },
    //项目-摄像头在线数
    videoProjectOnlineNum: {
        url: '/intecons/api/v1/screen/camera_online_num',
        method: 'get'
    },
    getTimeTypeDate: { //默认1，1：日，2：月，3：年，4：近7天，5：近30天，6：近半年，7：近一年，8：上月，9：季度，10：本周
        url: '/plat/api/v1/screen/get_date',
        method: 'get'
    },
    //项目-监控器名称列表
    videoNameProjectList: {
        // url: '/intecons/api/v1/screen/camera_list',
        url: '/intecons/api/v3/screen/video/camera_list',
        method: 'get'
    },
    //项-安全隐患/质量缺陷-检查数量/待整改数量/闭环数量/待复查数量
    safeProjectNumList: {
        url: '/plat/api/v3/screen/safe/stat_count',
        method: 'get'
    },
    //项-安全隐患/质量缺陷-质量分析（按时间）
    safeTimeProjectList: {
        url: '/plat/api/v3/screen/safe/stat_by_time',
        method: 'get'
    },
    //项目-累积数量
    totalNumProjectList: {
        url: '/plat/api/v1/screen/all_count',
        method: 'get'
    },
    //项目-累计闭环数量
    tatalCloseProjectList: {
        url: '/plat/api/v1/screen/all_close_count',
        method: 'get'
    },
    //项目-检查项弹窗
    checkDialogProjectList: {
        url: '/plat/web/v1/common_check/check_tpl/first_form_list',
        method: 'post'
    },
    // 进度部位-在建项目数
    getBuildingProjects: {
        url: '/plat/api/v1/screen/project_count_build_completed',
        method: 'get'
    },
    // 获取组织名称
    getOrgName: {
        url: '/api/v1/org/o_org/get_org_name_by_org_no',
        method: 'get'
    },
    // 请求摄像头列表
    getCameraList: {
        url: '/intecons/api/v3/screen/video/camera_list',
        method: 'get'
    },
    // 企-场地环境-视频监控-接入项目列表
    getCameraProjectList: {
        url: '/intecons/api/v3/screen/video/camera_project_list',
        method: 'get'
    },
    //项目-获取开始结束时间
    getStartTime: {
        url: '/plat/api/v1/screen/get_date',
        method: 'get'
    },
    // 短token获取长token
    getAccessToken: {
        url: '/api/v1/access/token/get_access_token_by_short',
        method: 'post'
    },
    // 获取用户权限
    getUserAuth: {
        url: "/api/v1/user/user/get_auths",
        method: "post"
    },
}
const platSettings = {
    //大屏- 公司智慧工地接入情况按明细列表
    getButList: {
        url: '/web/v1/project/comp_butt_list',
        method: 'get',
    },

    //大屏-建投单位下四个单位项目接入数量
    joinNum: {
        url: '/web/v1/project/butt_four_comp',
        method: 'get'
    },
    //大屏-纳入统计项目总数
    joinTotal: {
        url: '/web/v1/project/butt_join_sta_num',
        method: 'get'
    },
    //大屏-公司智慧工地接入情况饼图
    jpinPieChart: {
        url: '/web/v1/project/comp_pie_chart',
        method: 'get'
    },
    getNotButtDetail: { //大屏- 公司智慧工地接入情况饼图 - 未对接详情
        url: '/web/v1/project/comp_pie_chart/not_butt_detail',
        method: 'get'
    },
    //大屏-项目详情,四项对接情况判决
    joinStatus: {
        url: '/web/v1/project/project_butt_judge',
        method: 'get'
    },
    // 项目-进度部位-项目工期
    planProjectDay: {
        url: '/api/v3/screen/project/project_duration',
        method: 'get'
    },
    // 项目-进度部位-当前进度
    planProjectNowDay: {
        url: '/api/v3/screen/project/project_process',
        method: 'get'
    },
    // 项目-进度部位
    planProjectNowstage: {
        url: '/api/v3/screen/project/project_stage',
        method: 'get'
    },
    // 安全/质量-获取对应的obj_no，方便获取record记录
    getObjNo: {
        url: '/api/v3/screen/safe/get_obj_no',
        method: 'get'
    },
}


export default {...openBuildService(settings), ...buildService(platSettings) }